namespace Cos.Core.NHibernate
{
    public class BlogTagArticleDataModel
    {
        #region Constructors and Destructors

        public BlogTagArticleDataModel() {}

        #endregion

        #region Properties

        public virtual int ArticleCultureId { get; set; }

        public virtual int TagId { get; set; }

        #endregion

        #region Object Overrides

        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return false;
            }

            var model = obj as BlogTagArticleDataModel;

            return model != null && this.ArticleCultureId == model.ArticleCultureId && this.TagId == model.TagId;
        }

        public override int GetHashCode()
        {
            return this.ArticleCultureId ^ this.TagId;
        }

        #endregion
    }
}